<?php
	function enc_hash($string, $key = "uwika_krs_encrypt_key_do_not_tell_anyone"){
		return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));
	}
	function dec_hash($encrypted, $key = "uwika_krs_encrypt_key_do_not_tell_anyone"){
		return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($encrypted), MCRYPT_MODE_CBC, md5(md5($key))), "\0");
	}
?>